﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity;
using Iacym.Entities;

namespace Iacym.Repository.Mapping
{
    public class PROFESIONMap:EntityTypeConfiguration<PROFESION>
    {
        public PROFESIONMap()
        {
            this.HasKey(p=>p.Id);

            this.Property(p => p.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
            this.Property(p => p.Descripcion).HasMaxLength(50);


            this.ToTable("PROFESION");
        }
    }
}
